<html>
<body>
    <div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand">Что приготовить</a>
				<ul class="nav">
					<li {{if eq `/` .url }}class="active"{{end}}><a href="/">Главная</a></li>
					<li {{if eq `/recipes` .url }}class="active"{{else}}{{if .recipe}}class="active"{{end}}{{end}}><a href="/recipes">Рецепты</a></li>
					<!-- li {{if eq `/addRecipeForm` .url}}class="active"{{end}}><a href="/addRecipeForm">Добавить рецепт</a></li-->
				</ul>
					<ul class="nav pull-right">
						{{if .user}}
						<li class="dropdown">
							<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{.user}}<b class="caret"></b></a>
							<ul class="dropdown-menu">
								<li><a href="{{.LogoutUrl}}">Выйти</a></li></li>
							</ul>
						</li>
						{{else}}
						<li>
							<a href="{{.LoginUrl}}">Войти</a>
						</li>
						{{end}}
					</ul>
			</div>
		</div>
    </div>
</body>
</html>